package com.ch.dream.asynctask;

import org.json.JSONObject;

import android.content.Context;

import com.ch.dream.base.BaseRequestAsyncTask;
import com.ch.dream.bean.StorymodifyBean;
import com.ch.dream.common.CommonRequestUrl;
import com.ch.dream.net.MyHttpAPI;

public class AddStoryModifyRequestAsyncTask extends BaseRequestAsyncTask {

	private MyHttpAPI myHttpAPI = new MyHttpAPI(CommonRequestUrl.ADDSTORYMODIFY);
	
	public AddStoryModifyRequestAsyncTask(Context context, RequestServerListener requestServerListener) {
		super(context, requestServerListener);
	}
	@Override
	protected Object doInBackground(Object... arg0) {
		JSONObject result;
		try{
			StorymodifyBean bean =(StorymodifyBean)arg0[0];
			result = myHttpAPI.requestForJson(bean.getJsonObject());
		}catch (Exception e) {
			e.printStackTrace();
			return null;
		}
		return result;
	}

}
